<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 
<style type="text/css">
 .title{style:;border:3px solid #1e90ff;text-align:center;font-weight:bold;color:#1A1C22}
 .content{style:;border:1px;border-style:groove}
</style>

<p> 제공자 리스트</p>
	<fieldset>
	<table style="border:0;width:100%;" summary="제공자">
		<tbody>
			<tr>
				<td scope="row" align="center">
					<div class="title">Name</div>
				</td>
				<td scope="row" align="center">
					<div class="title">Homepage</div>
				</td>
				<td scope="row" align="center">
					<div class="title">telephone</div>
				</td>
				<td scope="row" align="center">
					<div class="title">Email</div>
				</td>
			</tr>
				<c:forEach items="${providerList}" var="provider">
					<tr>
						<td class="content" scope="row" align="center">
							<a href="/admin/provider/view.html?code=${provider.code}">${provider.name }</a>
						</td>
						<td class="content" scope="row" align="center">${provider.homepage }</td>
						<td class="content" scope="row" align="center">${provider.telephone }</td>
						<td class="content" scope="row" align="center">${provider.email }</td>
					</tr>
				</c:forEach>
		</tbody>
	</table>
	<button onclick="goform();">등록</button>
	</fieldset>
<script type="text/javascript">
	var goform = function(){
		location.href = "/admin/provider/form.html"; 
		location.replace("/admin/provider/form.html"); 
	}
</script>
	

	